import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import LoginView from "@/views/LoginView";
import FindView from "@/views/FindView";
import MyView from "@/views/MyView";
import MoodView from "@/views/MoodView";
import MainView from "@/views/MainView";
import SetView from "@/views/SetView";
import InformView from "@/views/InformView";
import IndexView from "@/views/IndexView";
import DetailView from "@/views/DetailView";
import ChatView from "@/views/ChatView";
import PayView from "@/views/PayView";
import HoppView from "@/views/HoppView";
import TestView from "@/views/TestView";
import MapView from "@/views/MapView";
import AttDtoView from "@/views/AttDtoView";
import CollectView from "@/views/CollectView";
import SearchView from "@/views/SearchView";
import RegisterAgreeView from "@/views/RegisterAgreeView";
import RegisterView from "@/views/RegisterView";
import RegisterSucceedView from "@/views/RegisterSucceedView";
import PopularView from "@/views/PopularView";
import TileView from "@/views/TileView";
import WinnowView from "@/views/WinnowView";
import AttDtoByCity from "@/views/AttDtoByCity";
import CityView from "@/views/CityView";
import SelectCityByName from "@/views/SelectCityByName";
import ArticleView from "@/views/ArticleView";
import ImgView from "@/views/ImgView";
import AttView from "@/views/AttView";
import TestlistView from "@/views/TestlistView";
import AdvCommitView from "@/views/AdvCommentView";
import ArticleCommentView from "@/views/ArticleCommentView";
import HousInfoView from "@/views/HousInfoView";
import HousPayView from "@/views/HousPayView";
import PayServerView from "@/views/PayServerView";
import ReserveView from "@/views/ReserveView";
const routes = [
  {
    path: '/',
    name: 'main',
    component: MainView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/pay',
    name: 'pay',
    component: PayView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/housinfo',
    name: 'housinfo',
    component: HousInfoView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/houspay',
    name: 'houspay',
    component: HousPayView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/payserver',
    name: 'payserver',
    component: PayServerView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/reserve',
    name: 'reserve',
    component: ReserveView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/search',
    name: 'search',
    component: SearchView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/attdto',
    name: 'attdto',
    component: AttDtoView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/popular',
    name: 'popular',
    component: PopularView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/tile',
    name: 'tile',
    component: TileView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/winnow',
    name: 'winnow',
    component: WinnowView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/testlist',
    name: 'testlist',
    component: TestlistView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/tile',
    name: 'tile',
    component: TileView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/winnow',
    name: 'winnow',
    component: WinnowView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/popular',
    name: 'popular',
    component: PopularView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/chat',
    name: 'chat',
    component: ChatView,
    meta:{
      TabBarShow: false,
    }
  }
  ,
  {
    path: '/agree',
    name: 'agree',
    component:RegisterAgreeView,
    meta:{
      TabBarShow: false,
    }
  }
  ,{
    path: '/detail',
    name: 'detail',
    component: DetailView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/map',
    name: 'map',
    component: MapView,
    meta:{
      TabBarShow: false,
    }
  },
  ,{
    path: '/index',
    name: 'index',
    component: IndexView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/test',
    name: 'test',
    component: TestView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/att',
    name: 'att',
    component: AttView,
    meta:{
      TabBarShow: false,
    }
  },

  {
    path: '/login',
    name: 'login',
    component: LoginView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/img',
    name: 'img',
    component: ImgView,
    meta:{
      TabBarShow: false,
    }
  },{
    path: '/find',
    name: 'find',
    component: FindView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/register',
    name: 'register',
    component: RegisterView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/registersucceed',
    name: 'registersucceed',
    component: RegisterSucceedView,
    meta:{
      TabBarShow: true,
    }
  },
  {
    path: '/agree',
    name: 'agree',
    component: RegisterAgreeView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView,
    meta:{
      TabBarShow: true,
    }
  },

  {
    path: '/mood',
    name: 'mood',
    component: MoodView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/my',
    name: 'my',
    component: MyView,
    meta:{
      TabBarShow: true,
    }
  },{
    path: '/set',
    name: 'set',
    component: SetView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/hopp',
    name: 'hopp',
    component: HoppView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/collect',
    name: 'collect',
    component: CollectView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/article',
    name: 'article',
    component: ArticleView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/inform',
    name: 'inform',
    component: InformView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/advcomment',
    name: 'advcomment',
    component: AdvCommitView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/selectCityByName',
    name: 'selectCityByName',
    component: SelectCityByName,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/city',
    name: 'city',
    component: CityView,
    meta:{
      TabBarShow: false,
    }
  },
  {
    path: '/attByCity',
    name: 'attByCity',
    component: AttDtoByCity,
    meta:{
      TabBarShow: false,
    }
  },
    {
        path: '/index',
        name: 'index',
        component: IndexView,
        meta:{
            TabBarShow: true,
        }
    },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },{
    path: '/articleComment',
    name: 'articleComment',
    component: ArticleCommentView,
    meta:{
      TabBarShow: false,
    }
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
